/**
 * @author joshua
 */
Ext.namespace('joshua.persona');


joshua.persona.tabs={
	xtype:'tabpanel',
	activeTab: 0,
	frame:false,
    border: false,
	defaults:{
        frame: true,
        border: false,
        layout:'form',
        defaultType: 'textfield',
        labelWidth:100,
        defaults: {
            width: 230
        }
    },
	
	items:[{
		title:'Datos Personales',
		iconCls: 'bitacora',
		items: [{
				fieldLabel: 'Nombre(s)',
				name: 'txt_nombres',
                allowBlank:false,
				vtype: 'capitalize'
			},{
				fieldLabel: 'Apellido(s)',
				name: 'txt_apellidos',
				vtype: 'capitalize'
			},{
				fieldLabel: 'Contacto Alterno',
				name: 'txt_ca',
			    allowBlank:true,
				vtype: 'capitalize'
			},
			{
				fieldLabel: 'Negocio',
				name: 'txt_negocio',
			    allowBlank:true,
				vtype: 'capitalize'
			}]
		},{
            title:'Datos de Localizaci&#243n',
            iconCls: 'house',
            items: [{
                    fieldLabel: 'Calle',
                    name: 'txt_dir',
                    vtype: 'capitalize'
                },{
                    fieldLabel: 'Colonia',
                    name: 'txt_colonia',
                    vtype: 'capitalize'
                },{
                    fieldLabel: 'Ciudad',
                    name: 'txt_ciudad',
                    vtype: 'capitalize'
                },{
                    fieldLabel: 'Estado',
                    name: 'txt_estado',
                    vtype: 'capitalize'
                    },{
                    fieldLabel: 'CP',
                    name: 'txt_cp',
                    vtype:'num'
                }]
        },{
            title:'Tel&#233fonos',
            iconCls: 'telefono',
            items: [{
                    fieldLabel: 'Casa',
                    name: 'txt_tel_casa',
                    maxLength:10,
                    vtype:"telefono"
                },{
                    fieldLabel: 'Trabajo',
                    name: 'txt_tel_trabajo',
                    maxLength:10,
                    vtype:"telefono"
                },{
                    fieldLabel: 'Celular',
                    name: 'txt_fax',
                    maxLength:10,
                    vtype:"telefono"
            }]
    }]
};//fin tabs
